package com.file.msg;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RequestData {
    private String code;
    private String msg;
    private Object data;

    public RequestData(RequestMsg res, Object data) {
        this.data = data;
        this.code = res.getCode();
        this.msg = res.getMsg();
    }

}
